import request from '@/utils/request'

// 查询邮件发送列列表
export function listEmailrecord(query) {
  return request({
    url: '/email/emailrecord/list',
    method: 'get',
    params: query
  })
}

// 查询邮件发送列详细
export function getEmailrecord(id) {
  return request({
    url: '/email/emailrecord/' + id,
    method: 'get'
  })
}

// 新增邮件发送列
export function addEmailrecord(data) {
  return request({
    url: '/email/emailrecord',
    method: 'post',
    data: data
  })
}

// 修改邮件发送列
export function updateEmailrecord(data) {
  return request({
    url: '/email/emailrecord',
    method: 'put',
    data: data
  })
}

// 删除邮件发送列
export function delEmailrecord(id) {
  return request({
    url: '/email/emailrecord/' + id,
    method: 'delete'
  })
}
